﻿<Window x:Class="Timer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Timer !" Height="280" Width="400" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" Icon="/Timer;component/Icon/Cronometro-64.png">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        
        <TextBlock Text="Inserire il numero di secondi :" TextWrapping="Wrap" Margin="5" VerticalAlignment="Top" FontSize="10"></TextBlock>
        <TextBox Margin="5,0,5,16" Height="20" Name="txtTempo" KeyDown="txtTempo_KeyDown" VerticalAlignment="Bottom"></TextBox>
        
        <Button Grid.Column="1" Margin="5" Height="20" Name="btnStart" Click="StartTimer" VerticalAlignment="Top">Start/Riprendi</Button>
        <Button Grid.Column="1" Margin="5" Height="20" Name="btnPausa" Click="btnPausa_Click" VerticalAlignment="Center">Pausa</Button>
        <Button Grid.Column="1" Margin="5" Height="20" Name="btnStop" Click="btnStop_Click" VerticalAlignment="Bottom">Stop</Button>

        <RadioButton Grid.Column="2" Grid.ColumnSpan="2" VerticalAlignment="Center" Margin="5" Name="rdbPassato">Tempo rimasto</RadioButton>
        <RadioButton Grid.Column="2" Grid.ColumnSpan="2" VerticalAlignment="Bottom" Margin="5" Name="rdbTrascorso" IsChecked="True">Tempo trascorso</RadioButton>

        <Image Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2" Margin="4,4,6,6" Source="/Timer;component/Image/cronometro.png"></Image>
        <Image Source="/Timer;component/Image/lancetta.png" Margin="42,40,41,16" Grid.Row="1" Grid.RowSpan="2" Grid.ColumnSpan="2" Name="imgLancetta" Stretch="Fill" StretchDirection="Both" Width="106" Height="106"></Image>
        
        <TextBlock Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2" Margin="5" FontSize="70" TextAlignment="Center" Text="0" Name="txtTempoTrascorso" FontFamily="Adobe Ming Std"/>
    </Grid>
</Window>
